class BaseLocaleModel {

  /// 编号
  final String id;

  /// 地区编号
  final String regionCode;

  /// 国家编号
  final String countryCode;

  /// 是否选中
  bool isSelected;

  /// 构造函数
  BaseLocaleModel(this.id, this.regionCode, this.countryCode, this.isSelected);

  BaseLocaleModel.fromJson(Map<String, dynamic> json): id = json['id'], regionCode = json['regionCode'], countryCode = json['countryCode'], isSelected = json['isSelected'];

  Map<String, dynamic> toJson() => {
    'id': id,
    'regionCode': regionCode,
    'countryCode': countryCode,
    'isSelected': isSelected,
  };

  @override
  String toString() {
    StringBuffer sb = new StringBuffer('{');
    sb.write("\"id\":\"$id\"");
    sb.write(",\"regionCode\":\"$regionCode\"");
    sb.write(",\"countryCode\":\"$countryCode\"");
    sb.write('}');
    return sb.toString();
  }

}
